<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Editar Cadastro</title>
    </h:head>
    <h:body>
        <center>
            <h:form>
                <p:panelGrid columns="2">
                    Id: <h:outputText value="#{pessoaBean.pessoa.id}"/>
                    Nome: <h:inputText value="#{pessoaBean.pessoa.nome}"/>
                    E-mail: <h:inputText value="#{pessoaBean.pessoa.email}"/>
                    Telefone: <h:inputText value="#{pessoaBean.pessoa.telefone}"/>
                    <h:inputHidden/>
                    <p:commandButton value="Atualizar" action="#{pessoaBean.editarPessoa}"/>
                    
                </p:panelGrid>

            </h:form>
        </center>
    </h:body>
</html>

